home *** CD-ROM | disk | FTP | other *** search
- ; ROUTINE TO SWITCH TWO STRINGS
- ;
- switch proc far
- ;
- push si ; save registers
- push di
- push cx
- push ax
- ;
- cld ; forword direction
- switch1:
- mov al,[di] ; get byte from destination
- movsb ; move from source to destination
- mov es:[si-1],al ; put byte in source
- loop switch1 ; loop back for more
- ;
- pop ax ; restore registers
- pop cx
- pop di
- pop si
- ret
- ;
- switch endp